package java_DesignPattern.BehavioralPattern.StatePattern.Before;

public class Test {
    public static void main(String[] args) {
        // 测试电梯状态
        Lift lift = new Lift();
        lift.setState(Lift.RUNNING);
        lift.run();
        lift.stop();
        lift.open();
        lift.close();
    }
}
